package com.ndp.fb.rdb.api;

import com.ndp.fb.rdb.model.EcElementCategory;
import com.ndp.fb.rdb.model.User;

import java.util.List;

/**
 * Created by jacky.cheng on 2016/5/31.
 */
public interface EcElementCategoryRdbService {
    List<EcElementCategory> findAll();

    Long save(EcElementCategory obj);

    void update(EcElementCategory obj);

    List<EcElementCategory> findCnByMaterielId(Long id);

    List<EcElementCategory> findUsByMaterielId(Long id);

    List<EcElementCategory> findTopCategory(Long id1);

    //查找元素类型 所有大类
    List<EcElementCategory> findBigCatagoryCN();
    List<EcElementCategory> findBigCatagoryUS();

    //查找元素类型 所有二级类别
    List<EcElementCategory> findSmallCatagoryCN(Long elementType);
    List<EcElementCategory> findSmallCatagoryUS(Long elementType);

    List<EcElementCategory> allCreate();

    EcElementCategory findByCode(String code);
}
